CGI architecture diagram explanation